<!--11-remove和empty的使用.html-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>remove和empty的使用</title>
    <script type="text/javascript" src="jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#p01").remove();
            $("#p02").empty();
        })

    </script>
</head>
<body>
    <p id="p01">y</p>
    <p>lai</p>
    <p id="p02">hui</p>
    <div>ylaihui</div>
</body>
</html>